package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);
    //新增床位
    int insertBed(Bed bed);
    //根据id查询床位
    Bed selectById(Long id);
    //修改床位信息
    int updateBed(Bed bed);
    //根据id删除床位
    int deleteById(Long id);
}

